home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 June / maximum-cd-1999-06.iso / Fireworks 2 / data1.cab / Program_Files / Settings / HTML_Code / ServerMap.mtt < prev    next >
Encoding:
Text File  |  1999-03-01  |  1.1 KB  |  33 lines

  1. write("# This map file needs to be placed on a server in a directory with a CGI\n");
  2. write("# Application capable of interpreting the Image Map information.  If you\n");
  3. write("# are unsure about this, contact your web site administrator.\n");
  4.  
  5. write("\n");
  6.  
  7.     var i = 0;
  8.     while (i < imagemap.numberOfURLs) {
  9.         var curImagemap = imagemap[i];
  10.         write(curImagemap.shape); // Shapes are rect poly and circle
  11.         write(" ", curImagemap.href, " ");
  12.         for (var j=0; j<curImagemap.numCoords; j++) {
  13.             if (j>0) write(" ");
  14.             // polygon has n coords.
  15.             // rect has 2 coords, topLeft, and botomRight.
  16.             // Circle has one coord, center.
  17.             write(curImagemap.xCoord(j), ",", curImagemap.yCoord(j)); 
  18.         }
  19.         if (curImagemap.shape == "circle") {
  20.             // write the radius.
  21.             write(" ", curImagemap.radius);
  22.         }
  23.         write("\n");
  24.         i++;
  25.     } 
  26.     if (exportDoc.hasBackgroundLink) {
  27.         var curImagemap = exportDoc.backgroundLink;
  28.         write("default ", curImagemap.href, "\n");
  29.     }    
  30.  
  31. write("# This Image Map was created with Macromedia Fireworks 2.0\n");
  32. write("# http://www.macromedia.com\n");
  33.